package com.itheima.mapper;

import com.itheima.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberMapper {
    Member findMemberByTelephone(@Param("telephone") String telephone);

    void add(Member member);

    int countsMembersByPerMonth(@Param("beginDate") String beginDate, @Param("endDate") String endDate);

    ////用户年龄段占比 饼图
    List<Map> getMemberPorpertion();
    //用户性别占比 饼图
    List<Map> getMemberPorpertionBySex();


}
